-- CALC_TRAINING_EVENT_BONUS

-- 冈布奥事件-加速训练奖励
return function(eventId, para)
    local args = SlimeEventM.query(eventId, "bonus_args");
    local petId = para["class_id"];
    local gem = para["gem"] or 0;

    if args.bonus_type == "gem" then
        return { 2, "gem", math.max(1, math.modf(gem / 2)), };
    else
        local chipId = PetM.query(petId, "chips");
        return { 1,chipId, 5, };
    end
end
